http = require 'http'
map = require 'through2-map'
server = http.createServer (request, response)->
	return response.end() if request.method != 'POST'
	response.writeHead 200, {'content-type' : 'text/plain'}
	request.pipe(map (chunk)->
		return chunk.toString().toUpperCase()
	).pipe response
server.listen process.argv[2]